package com.example.firstapp.ContentProvider

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.content.Intent
import com.example.firstapp.R
import com.example.firstapp.databinding.ActivityContentProviderBinding

class ContentProviderActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_content_provider)
        val binding  = ActivityContentProviderBinding.inflate(layoutInflater)
        setContentView(binding.root)

        binding.call.setOnClickListener {
            val intent = Intent(this, requestPermissions::class.java)
            startActivity(intent)
        }
        binding.Contacts.setOnClickListener {
            val intent = Intent(this, ContactsListView::class.java)
            startActivity(intent)
        }
    }
}